<template>
  <tr>
    <td colspan="5">{{ Sum }}</td>
  </tr>
</template>

<script>
export default {
  props: ['goodList'],
  computed: {
    Sum() {
      return this.goodList
        .filter((item) => item.checked)
        .reduce((prve, item) => {
          return (prve += item.num * item.price)
        }, 0)
    },
  },
}
</script>

<style></style>
